yum install make wget crontabs -y && wget http://freetribe.me/rar/rarlinux-x64-5.3.0.tar.gz
tar -zxvf rarlinux-x64-5.3.0.tar.gz
cd rar
make
cd ..
rm -rf rarlinux-*.tar.gz rar
wget http://freetribe.me/rar/rrshareweb_linux.rar
unrar x rrshareweb_linux.rar
tar -zxvf rrshareweb_centos7.tar.gz
rm -rf rrshareweb*.tar.gz rrshareweb_linux.rar WEB*.png
firewall-cmd --zone=public --add-port=3001/tcp --permanent
firewall-cmd --reload
cat > /etc/systemd/system/renren.service <<EOF
[Unit]
Description=RenRen server
After=network.target
Wants=network.target
[Service]
Type=simple
PIDFile=/var/run/renren.pid
ExecStart=/root/rrshareweb/rrshareweb
RestartPreventExitStatus=23
Restart=always
User=root

[Install]
WantedBy=multi-user.target
EOF

systemctl start renren

systemctl status renren

systemctl enable renren

cd rrshareweb
./rrshareweb